<?php
/**
 * Created by PhpStorm.
 * User: MrHung
 * Date: 8/10/14
 * Time: 6:07 PM
 */

class askController extends Controller{

    public function index(){
        $output                   = $this->loadModel('User');
        $title = $output->getOnePost($_GET['ask']);
        $this->_view->title = $title[0]['post_details'];
        $this->_view->description = $title[0]['post_details'] ;
        $this->_view->image = $title[0]['photo'];
        $this->_view->askId = $_GET['ask'];
        $this->_view->addRight = $output->getAds('right');
        $this->_view->addleft = $output->getAds('left');
        $this->_view->category = $output->getAllCategory();

        $this->_view->render('index',null);

    }
} 